﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="e_filter.ascx.cs" Inherits="administrator_uc_admin_e_filter" %>
<div class="classtitle">
    Cấu hình chức năng lọc sản phẩm cho danh mục: 
    <span class="clscattitle"><asp:Literal ID="ltTitleCategory" runat="server" ></asp:Literal></span> 
    <asp:HiddenField ID="hdCateID" runat="server" />
    <asp:HiddenField ID="hdGroupFilterID" runat="server" />
    <asp:HiddenField ID="hdFilterID" runat="server" />
</div>
<div class="divspace"></div>
<div id="wrapperfilter">
    <div id="leftfilter">
        <div class="clstitlefilter">Xem</div>
        <div class="clsviewitemfilter">
            <asp:Literal ID="ltViewFilterItem" runat="server"></asp:Literal>
        </div>
    </div>        
    <div id="rightfilter">
        <div class="clsgroupfilter"></div>
        <table cellspacing="1" class="classtable">
            <tr>
                <td class="clstitlefilter" colspan="2">
                Nhóm chức năng lọc
                </td>
            </tr>
            <tr>
                <td class="clsmessagefilter" colspan="2">
                    <asp:Label ID="lblMessageGroupFilter" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">
                Tên nhóm:
                   </td>
                <td class="classcolright">
                    <asp:TextBox ID="txtGroupFilterName" runat="server" Width="200px" 
                        ValidationGroup="ValidationGroupFilter"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                        ControlToValidate="txtGroupFilterName" runat="server" ErrorMessage="(*)" 
                        ValidationGroup="ValidationGroupFilter"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">
                    Thứ tự sắp xếp:</td>
                <td class="classcolright">
                    <asp:TextBox ID="txtGroupSortIndex" CssClass="classtextsort" runat="server" Width="80px"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ControlToValidate="txtGroupSortIndex" ErrorMessage="(0-&gt;1000)" 
                        MaximumValue="1000" MinimumValue="0" Type="Integer" 
                        ValidationGroup="ValidationGroupFilter"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">
                    &nbsp;</td>
                <td class="classcolright">
                    <asp:Button ID="btnAddorEditItemGroupFilter" runat="server" Text="Thêm Mới" 
                        ValidationGroup="ValidationGroupFilter" 
                        onclick="btnAddorEditItemGroupFilter_Click" />
                    <asp:Button ID="btnDeleteItemGroupFilter" runat="server" Text="Xóa" 
                        ValidationGroup="ValidationGroupFilter" OnClientClick="return confirm('Bạn có chắc muốn xóa không?');"
                        onclick="btnDeleteItemGroupFilter_Click" />
                 </td>
            </tr>
        </table>
        <div class="clsfilter">
        <table cellspacing="1" class="classtable">
            <tr>
                <td class="clstitlefilter" colspan="2">
                Tiêu chí lọc
                </td>
            </tr>
            <tr>
                <td class="clsmessagefilter" colspan="2">
                    <asp:Label ID="lblMessageFilter" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">
                Chọn nhóm tiêu chí:
                   </td>
                <td class="classcolright">
                   <asp:DropDownList ID="DropdownGroupFilterID" runat="server" Width="200px" AppendDataBoundItems="true">
                        <asp:ListItem Value="0">---Chọn nhóm tiêu chí---</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">
                Tên tiêu chí lọc:
                   </td>
                <td class="classcolright">
                    <asp:TextBox ID="txtFilterName" runat="server" Width="200px" 
                        ValidationGroup="ValidationFilter"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                        ControlToValidate="txtFilterName" runat="server" ErrorMessage="(*)" 
                        ValidationGroup="ValidationFilter"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="classcolleft">              
                   </td>
                <td class="classcolright">
                    <div>
                        <asp:CheckBox ID="chkPrice" runat="server" AutoPostBack="true" 
                            oncheckedchanged="chkPrice_CheckedChanged" Text="Lọc theo giá" />                     
                    </div>
                    <asp:Panel ID="panelShowOrHidePrice" runat="server">
                        <div>Giá từ    : 
                            <asp:TextBox ID="txtFromPrice" runat="server" CssClass="clsprice"></asp:TextBox><span class="clsunitprice">vnđ</span>
                            <asp:RangeValidator ID="RangeValidatorFromPrice" runat="server" 
                                    ControlToValidate="txtFromPrice" ErrorMessage="(0-&gt;999999999)" 
                                    MaximumValue="999999999" MinimumValue="0" Type="Integer" ValidationGroup="ValidationFilter"></asp:RangeValidator>       
                        </div>
                        <div>đến giá: <asp:TextBox ID="txtToPrice" runat="server" CssClass="clsprice"></asp:TextBox><span class="clsunitprice">vnđ</span>
                                    <asp:RangeValidator ID="RangeValidatorToPrice" runat="server" 
                                    ControlToValidate="txtToPrice" ErrorMessage="(0-&gt;999999999)" 
                                    MaximumValue="999999999" MinimumValue="0" Type="Integer" ValidationGroup="ValidationFilter"></asp:RangeValidator>  
                        </div>
                    </asp:Panel>
                </td>
            </tr>   
            <tr>
                <td class="classcolleft">
                    Thứ tự sắp xếp:</td>
                <td class="classcolright">
                    <asp:TextBox ID="txtFilterSortIndex" CssClass="classtextsort" runat="server" Width="80px"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" 
                        ControlToValidate="txtFilterSortIndex" ErrorMessage="(0-&gt;1000)" 
                        MaximumValue="1000" MinimumValue="0" Type="Integer" 
                        ValidationGroup="ValidationFilter"></asp:RangeValidator>
                </td>
            </tr>         
            <tr>
                <td class="classcolleft">
                    &nbsp;</td>
                <td class="classcolright">
                   <asp:Button ID="btnAddorEditItemFilter" runat="server" Text="Thêm Mới" 
                        ValidationGroup="ValidationFilter" 
                        onclick="btnAddorEditItemFilter_Click" />
                    <asp:Button ID="btnDeleteItemFilter" runat="server" Text="Xóa" 
                        ValidationGroup="ValidationFilter" OnClientClick="return confirm('Bạn có chắc muốn xóa không?');" onclick="btnDeleteItemFilter_Click" />
                 </td>
            </tr>
        </table>              
        </div>
        <div style="text-align:center; clear:both; margin-top:10px; border-top:1px dotted red;"> 
            <asp:LinkButton ID="lbtResetForm" runat="server"              
                onclick="lbtResetForm_Click"> <img src="../images/icons/icon-reset.jpg" border="0px" /><b>Thiết Lập Lại</b> </asp:LinkButton>  
            <a href="javascript:void(0);" onclick="javascript:window.close();"><img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b></a> 
        </div>
    </div>
</div>

